#!/usr/bin/env python
# -*- coding:utf-8 -*-
import memcache

mc = memcache.Client(['192.168.136.8:11211'], debug=1)   #开启debug模式
    #server可以是加入weight的tuple：[(ip:port,weight),.....]
mc.set("foo", "bar")
ret = mc.get('foo')
print ret